Fix warnings
Compile with -Werror
Merge pull request #26 from lfasnacht/warnings_fix

Fix warnings and compile with -Werror