Make most dependencies depend on the selection state of the respective plugins requiring them. This cuts down compile time considerably when plugins like MySQL support are disabled. Signed-off-by: Jo-Philipp Wich <jo@mein.io>