new x64 support for mac build
Merge pull request #2137 from libm/master

new x64 support for mac build