Fixed compilation errors/warnings using a newer version of GCC (Ch. 7)