Some fixes for success build by erlang.mk.