Avoid MIT compat API when building with Heimdal