Fix some warnings

These warnings prevented the project from being built when warnings were treated as errors (`-Werror` in `gcc`).