Change from using rebar to use erlang.mk for building

Changed to use erlang.mk for building.

Currently the gproc dependency is from lehoff/gproc until uwiger/gproc is updated with the new rebar file which is needed to have rebar projects with dependencies in a erlang.mk based project.