fixes for rend2 in osx

or->ori changes
rend2 builds on OSX

this needs doing properly. note that you need to set
-DCMAKE_CXX_FLAGS="-stdlib=libc++" with cmake for this to actually build