Minor MEX compilation fixes.