Fix some compiler warnings

When set to warn about everything, LLVM will generate a bunch of warnings some
of which are fixed in this commit.