make build work on osx
make unit tests pass on osx