Compatibility with Android 4.4 KitKat

Fixes #733