build: fix some GCC warnings