Compiled on osx
minor fixes