build on os x with frameworks or shared libs