Fail silently if we can't get the compiler version

This is a partial fix for #1489.