More restrictive matching of c++ file extensions for compileAttributes