static library for OSX