Fix all warnings
Merge pull request #210 from tomaka/fix-warnings

Fix all warnings