fix some compiler warnings
Merge pull request #251 from Jalle19/fix-compiler-warnings

Fix most compiler warnings