Changes needed to compile using Visual Studio 2013 on windows.