Replace a.get(n) with a[n].
Avoid mutation in a match guard.
Remove impl Seek for MemWriterFakeStream.

Its seekability wasn’t being used, and so in light of the changes made
in rust-lang/rust#15915 it should be removed, rather than switching from
the now-unseekable ``MemWriter`` to the new ``SeekableMemWriter``.

This necessitated adding the ``get_ref`` method which was added to
``MemWriter`` at some point.
Fix build for certain BSD systems

* BSD's don't have bash in this location. /bin/sh works here perfectly.
* BSD's have GNU make as gmake. Test for it and use it accordingly.
Merge pull request #117 from mneumann/master

Fix build for certain BSD systems
Simplify the build system.

Remove the `configure` script and the Makefile. This disables optional SSL,
but allows us to switch to Cargo completely. Code generation is now in its own package,
and is called from Cargo through `prebuild.sh`.

The `doc` folder was renamed to `documentation` to avoid deletion when
running `cargo clean`. The examples were moved to the root so they get built when
running `cargo test`.
Update README and examples for build sys changes.

And make the shell script BSD friendly again.
Merge pull request #119 from michaelsproul/build-fix

Simplify the build system and switch to pure Cargo.
Merge remote-tracking branch 'upstream/master' into rust-url