Make compatible with erlang.mk