Should just be a firmware change I think, but I can't see the offending gcode because you haven't posted it yet, so I'm not exactly sure what it is complaining about.
For M574 S0 isn't a think anymore. To invert the pin you need to use ! in your M950 command that defines the pin.