Replace rebar with erlang.mk and fix dialyzer warnings