fix minor issues in VS2013