Fix GCC 4.8 toolchain compilation

Signed-off-by: Matti Kosola <matti.kosola@jolla.com>