fix mex build issue