OS X support to build JSONSL

Hey I made some changes to the Makefile to support OS X, if you're interested please pull from my fork.