backport fix for when crypt.h is missing