Fix VS2012 build