Linaro GCC 4.9.1: fix compilation errors