Remove all OSX depends code

Next step remove pthread … and remove geometry shader