protect and avoid authn_core load on non-2.4 versions