Simplify CFLAGS handling in configure and expose crypt() on NetBSD