Some cleanups and fixes

* Use configure_file for building maxminddb.
* Make clang happy when dealing with tuples.
* Add travis configuration.