Got rid of the config.h includes in IM-code. Now that HAVE_CONFIG_H is defined, they started to cause problems.