Another attempt at Mac OS X support

I'd say there has to be a better way to detect
x64 support, but I don't know it yet.