MB-10807 Fix make test and make dialyzer.

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