create osx makefile.
make install_name_tool and otool vars. update makefile.
make check for platform when installing libs.