Add rebar script to make things compile correctly

Change-Id: Ic7e5797d819e643282b3b14aafd73f47ae28c3e4
Reviewed-on: http://review.couchbase.org/27223
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>