latest built for Mac

Enabled JSON support for Mac and removed some compiling errors that
occurred only on Mac.

Fixes #1.