VS2012 sln + code changes to compile on windows