Compatibility fix for Windows and Visual Studio 2012