Properly support different Erlang compiler versions