Fix compile

Fixing compilation, rebar aborted due to missing dependency, and update rebar to allow non-rebar build systems to work alongside rebar thanks to the newly introduced REBAR_DEPS_DIR which allows specifying the deps dir location.