Replace record with struct, update for elixir 1.0.0-rc1