Switch to :erlang.term_to_binary

Change caused by Elixir 0.12.3 deprecation warning.
Update mix files