Updated VS projects + VS compile fix

Updated VS Projects to VS2013
Fixed a compile error introduced last revision