fixed visual studio 2012 projects.
misc changes.