Fix failing build with new Erlang version