Only add adapters if the relevant libraries are loaded.