fixing missing dependancies and CMakelist for OSX

still some libs missing