erlang: enable and fix builds on darwin