fix MSVC12 build issue (porting from qaac)