change build process & add OSX framework structure