built lib support for mac osx