Added ability to compile and use 64 bit file format on 32 bit systems, and vice-versa