Fix for ARM thumb compilation

This fix originates from https://bugs.kde.org/show_bug.cgi?id=247978

Signed-off-by: Juha Kallioinen <juha.kallioinen@jollamobile.com>