build system: add flag for mex compilation on OS X 10.9