Fix build for vs2012 on windows