Add Erlang 17.0 support

This PR adds support for 17.0 without breaking all older versions.