A number of changes to make it work on Mac. These changes should also allow it to work on any UNIX based OS too but untested on any Linux distro so far