Fixing MEX iface for the OCP CGT solver