Fix HasAny() enum helper to ease migration to .Net 4.0