Move build part of Makefile.lib into a new file.
New OSX build.