Add dependency on gcc (DATASET-877)
Update rabbitmq to 3.1.3.

Bugs fixed in 3.1.3
==================================

management plugin
------------------
25643 fix bug that lead to incorrect reporting of accumulated
      stats (since 3.1.2)

Bugs fixed in 3.1.2:
==================================

server
------
25636 fix startup failure when using SSL with Erlang/OTP R16B01
25571 fix potential deadlock in application shutdown handling (since 2.1.0)
25567 fix queue crash requeuing in-memory messages (since 2.7.0)
25599 fix queue record leak of exclusive durable queues after forceful
      shutdown (since 3.0.1)
25576 fix bug in queue index where a broker crash between segment
      deletion and journal truncation could prevent the broker from
      subsequently starting (since 2.0.0)
25615 fix duplicate mirror queue slaves starting on a single node (since 2.6.0)
25588 ensure per-message-TTL is removed when messages are dead-lettered
      (since 3.0.0)
25575 fix bug handling empty rabbit_serial leading to startup failure
      (since 1.7.0)
25640 fix channel crash with a race between basic.ack and basic.cancel
      when prefetch >= 1 (since 3.1.0)
25638 fix leak affecting HA/mirrored queues (since 3.0.0)
25611 improve stack traces when message store crash occurs
25612 fix crashing processes when stopping node as part of a cluster
      (since 2.4.0)

stomp plugin
-------------
25564 fix handling of reply-to for non-temporary queue destinations
      (since 3.1.0)
25566 allow unescaped colons in header values for STOMP 1.0 compatibility

management plugin
-----------------
25592 fix bug allowing unprivileged users to see stats for all vhosts
      (since 3.1.0)
25600 fix consumer record leak in the management database (since 2.2.0)
25629 fix memory leak in the presence of long-lived channels and
      short-lived queues (since 3.1.0)
25580 fix bug preventing definitions file from loading if it contained
      a policy from a non default vhost (since 3.1.1)

LDAP plugin
-----------
25573 fix garbled login failure errors (since 2.3.0)

Java client
-----------
25633 fix quoting and escaping in json parser, avoid a potentially
      non-terminating loop and improve error handling (since 2.8.2)
      (thanks to Bradley Peabody)

Erlang client
-------------
25521 fix negotiated frame-max handling, which was being ignored (since 2.0.0)
25489 fix rpc client/server to ensure correlation-ids are valid UTF-8 strings
      (since 2.0.0) (thanks to Daniel White)
Changes in 3.1.5
=============================================

Release Highlights
==================

server
------
bug fixes
25713 fix crash in the delegate mechanism leading to various crashes, and
      intra-cluster incompatibility between RabbitMQ 3.1.4 and other members
      of the 3.1.x series (since 3.1.4)
25700 25710 prevent (harmless) errors being logged when pausing in
      pause_minority mode (since 3.1.0)

LDAP plugin
-----------
bug fixes
25703 prevent channel crash when attempting to retrieve LDAP attribute that
      does not exist (since 2.7.0)

Changes in 3.1.4
=============================================

Security Fixes
==============

server
------
25686 ensure DLX declaration checks for publish permission (since 2.8.0)

management plugin
-----------------
24803 update to a later version of Mochiweb that fixes a directory traversal
      vulnerability allowing arbitrary file access on Windows (since 2.1.0)

Release Highlights
==================

server
------
bug fixes
25638 fix resource leak with mirrored queues when whole clusters stop
      (since 3.0.0)
25624 fix queue crash in mirrored queue handling of messages during promotion
      (since 2.6.0)
25615 25670 fix race conditions in mirrored queues when different cluster
      nodes start and stop near-simultaneously (since 2.6.0)
25617 fix corrupt_cluster_status_files error after abrupt node shutdown
      (since 3.0.0)
25645 fix mirrored queue sync failure in the presence of un-acked messages
      not at the head of the queue (since 3.1.0)
25640 fix race condition leading to channel crash with low prefetch count
      repeated basic.consume and basic.cancel (since 3.1.0)
25625 fix memory leak of mirrored queue messages during promotion
      (since 2.6.0)
25649 allow hipe compilation on Erlang R16B01
25659 allow offline cluster node removal with a node which is not second
      from last (since 3.0.0)
25648 make `rabbitmqctl join_cluster' idempotent (since 3.0.0)
25651 improve `rabbitmqctl cluster_status' handling of partition info when
      cluster nodes are in the process of stopping (since 3.1.0)
25689 ensure launch of subprocesses to monitor disk space and file handles
      works correctly when clink shell is installed on Windows (since 2.1.0)
25594 fix rabbit_error_logger crash during failed startup (since 1.4.0)
25631 fix bug in shutdown sequence that could lead to spurious
      INTERNAL_ERRORs being sent to clients (since 3.1.0)

erlang client
-------------
bug fixes
25632 fix broken error handling in amqp_network_connection that could lead
      to a crash during broker shutdown (since 2.4.0)
25688 fix bug in challenge-response auth handling (since 2.3.0)

enhancements
25674 add amqp_rpc_{client,server}:start_link()

STOMP plugin
------------
bug fixes
25691 fix connection crash on consumer cancellation notification (since 3.0.0)

build and packaging
-------------------
bug fixes
25668 add ssl support to OS X standalone package
25584 ensure that VERSION is set correctly when building src packages
      (since 2.7.0)
Add builtin.mk file for built-in libexecinfo support.

* Tested on NetBSD 6.99.23 and 6.1 with graphics/fotoxx.
Merge remote-tracking branch 'origin/joyent/feature/miscfix/2013Q2' into joyent/release/2013Q2_multiarch
Update joyent and wip