Fix many unused variable warnings and required Elixir version