Added HAVE_CONFIG_H definition to CMakeLists.txt instead of relying on it being defined in the source.