Update makefile to build a static library that can run on MacOS 10.8