Improve Compatibility Mode check

Instead of overriding the compatibility mode prefix via filter as in
#20, we simply set the desired prefix when the constant is defined. Now
the check isn't just that the constant is defined, but confirms its
value for backwards compatibility and then sets the appropriate prefix

Fixes #21