tid25364 upgrade erlang and fix patches