Fix some clang warnings in native
also cleans up a bit
Merge pull request #182 from LudwigOrtmann/make_clang_happy

Fix some clang warnings in native