OS X build script adjustments. Still linking bugs, but finds some homebrewed stuff.