Default to not using mex for now.
A few getNumDOF fixes.