build system: fix dmm build for os x