working toward working compile on osx and linux