Compile things correctly after rebar upgrade

For the new rebar version the recursive flag for cleaning up all
sub projects.

As we don't use the rebar.config.script anymore the compiler
macro `makecheck` is passed in directly to rebar from the Makefile

Change-Id: Ic8158c423e74c8c3e6255462dafb006ac58cc174
Reviewed-on: http://review.couchbase.org/41763
Reviewed-by: Sarath Lakshman <sarath@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>