Solved errors when compiling with 4.8.x toolchain