Support OS X

* Fixes 32/64-bit mismatch
* Adds necessary libraries/frameworks
* `npm test` now works
Add braces
Merge pull request #98 from markandrus/develop

Support OS X