Add flags to erlc

Change-Id: I878741b81281c587bcd9419f01f1430a5c0904d4
Reviewed-on: http://review.couchbase.org/34922
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>