event_rabbitmq: allow cross-compile
event_rabbitmq: properly reconnect after closing a connection