updated erlang R158 and common to work with a non-x86 target