Fixed issues related to 64-bit compilation.