Update to VS2013

Update to VS2013, fix some warning