Fixed compiler warnings on 64-bit platform.