Support OS X

* Fixes 32/64-bit mismatch
* Adds necessary libraries/frameworks
* `npm test` now works