OSX rend2

parts need cleaning up

cmake needs
-DCMAKE_CXX_FLAGS="-stdlib=libc++"
for this to build