Fix mac build script to use mdtool instead of build
Use correct pre-4.0 version of 3.99.0-beta