Fix compiler warnings

We should be able to compile with -Wall on gcc without issues. This is
needed for issue #14.
Merge pull request #16 from ipop-project/fix-warnings

Fix compiler warnings