fix not compiling on vs2012