fixed crc32 on 64-bit Linux and some keyfile issues