Added missing ifdef for optional rabbitmq-related code