update projects to vs2012, make changes to allow compilation