core: set the  option for Erlang 17.0 and later.
Issue #764