Fix compiling bug on MSVS2012