builds on osx and linux, just need to change compile flags