Fixed Compilation error for Vs2010