Changes to make compiled CERR work on Mac/Unix