Fixes build vs2013

Can now build and run the solution in Vs2010, Vs2012 and Vs2013