Fixed 64-bit compile time warnings