update windows project to vs 2012 for C++11; windows complilation fixes