Fixed 64-bit related compiler warnings