Fix building erlang