Add erlang.mk support
Fix for doc
Make dialyzer happy