build system: do not special-case MPI and openMP anymore, make it possible to disable any package

For example, this is required for -DUSE_MPI=OFF having any effect if an MPI library is installed. Note that due to usage of the cmake config mode, this patch is required for every module on the dependency chain...