use NO_LIB* instead of EXCLUDE_* (fixes potential use-after-free)