Disable deprecated type warnings.

Example of such a warning spewed by Erlang/OTP 17:

Warning: type queue/0 is deprecated and will be removed in OTP 18.0; use use queue:queue/0 or preferably queue:queue/1

And we can't just start using new types because this breaks
compilation on r14b04.

Change-Id: I119ada30aadb60f9f2d33ac395377003dc723d83
Reviewed-on: http://review.couchbase.org/35583
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>