Fix build errors in VS2013