Fix several GCC warnings

Thanks again to @Luke-Nukem! I think this is all of them!