Kill rebar based build system
Add erlang.mk
Fix warnings