fix inline errors when compiled with toolchain 4.7