Fix warnings

Fix a couple of annoying warnings that clutter the output when compiling.