cmake: Set -DHAVE_UMASK only where it's needed