fixes for 64-bit precision warnings