Updates to OS X build script: don't hard-code library version numbers, make library major version a config parameter, include the version number in the DMG file