Fix compiler warnings

We should be able to compile with -Wall on gcc without issues. This is
needed for issue #14.
Merge branch 'fix-warnings' into travisci