compatibility with gcc 4.6

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jollamobile.com>