Fix gcc errors/warnings