Add support for 64-bit binaries/libraries

Works on devices and simulator in both 32- and 64-bit modes and compiles error-free with -Wall