revise erlang flags

Change-Id: Ia7b47ca170eb509d5b562f33ebaefeaaab2f37ac
Reviewed-on: http://review.couchbase.org/37684
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>