[calligra] Detect cpp11 in a slightly different way on non-compliant compilers