Set custom SLIBNAME_WITH_MAJOR and SLIBNAME_WITH_VERSION for MinGW.