fixed compilation errors for 32 bit vs2013
Fixed compilation errors