Fix the use of R__HAVE_CONFIG (CMake)