dependencies: Split detect_compiler out of dependency
dependencies: Split detect_compiler out of dependency

We need it for dependency factories as well.

mesonbuild/meson,jpakkane/meson,pexip/meson,QuLogic/meson,pexip/meson,QuLogic/meson,mesonbuild/meson,pexip/meson,becm/meson,mesonbuild/meson,becm/meson,mesonbuild/meson,QuLogic/meson,jpakkane/meson,mesonbuild/meson,mesonbuild/meson,pexip/meson,mesonbuild/meson,becm/meson,becm/meson,QuLogic/meson,becm/meson,pexip/meson,becm/meson,becm/meson,QuLogic/meson,jpakkane/meson,pexip/meson,jpakkane/meson,QuLogic/meson,pexip/meson,jpakkane/meson,QuLogic/meson,jpakkane/meson,pexip/meson,becm/meson,pexip/meson,QuLogic/meson,pexip/meson,jpakkane/meson,jpakkane/meson,mesonbuild/meson,QuLogic/meson,mesonbuild/meson,becm/meson,becm/meson,mesonbuild/meson,jpakkane/meson