Fixes deprecation warning.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1484141 13f79535-47bb-0310-9956-ffa450edef68
Fixes compile error.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1484142 13f79535-47bb-0310-9956-ffa450edef68
Fixes AMQ-4544: Cant send MQTT message to AMQP endpoints

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1484143 13f79535-47bb-0310-9956-ffa450edef68