fixed MPC MEX interface for Windows