Ensured that HAVE_* symbols are set for library dependencies.
Ensured that building library-dependent features is done correctly.