amqp plugin: Fixed compilation when using rabbitmq-c < 0.4.