Fix building of macos bundle loading code on 64 bit