64-bit warning fixes