Added MacOSX compilation to the script. Unfortunately I have no way of testing this because I don't own a Mac computer, @marksamman if you could test it or have someone else test it that would be great. Thanks!