CMake: Add -DHAVE_CONFIG_H to tests/*.c

test_hostcheck includes a file which includes amqp_private.h which needs
config.h.