update deprecated code to make it work with elixir 0.13

Hi , this pull request is made in order to make this library compile with elixir 0.13

regards