fixed compiler warnings about size differences in 64-bit build