Bump rebar; fix makefile.

* Use a version of rebar which correctly builds the protobuffs
  dependencies with +debug_info.
* Compile needs to depend on deps; build dialyzer with all deps once
  rebar is upgraded.