Added patch to sanitize external solver criteria.
Merge pull request #1102 from rdicosmo/master

Added patch to sanitize external solver criteria.