rethinkdb: boost 1.56 compatibility

Resolves build failures against boost 1.56 described at https://github.com/Homebrew/homebrew/pull/31428#issuecomment-56282997.

Fixes pulled from rethinkdb/rethinkdb#3044.