fixed compilation errors for 32 bit vs2013