hardening flags compatibility