Instead of fix checking for C and CXX compilers, all enabled languages will be tested now.
Older CMake versions are not capable of continue in foreach functions.