cmake build system: better detection of clang compiler

Signed-off-by: Tim Blechmann <tim@klingt.org>