Updated macosx build script.
Cleanup.