Fixed build errors in VS2013