VS2010 build: Fixed compatibility with non-MSVS compilers.