resolves build issues on ubuntu with update mex.cmake