gcc: fix errors compiling in 4.8