Make ExceptionMatches static for multimodule use.
Add some unused function warning suppression macros