Allow -DNO_CLEAN build across r352689.
Split the LIBCOMPAT case because the usual egrep only matches in LIBCOMPAT on amd64.