Fixed 64-bit compile problem