Fix errors when compiling with Linaro

Signed-off-by: Sultanxda <sultanxda@gmail.com>