Fix for wrong distance calculation

Implements a workaround for Android 4.2.1 JIT bug
(https://android.googlesource.com/platform/dalvik/+/4888a4b95e2f1b2cdeb6a0ca8dd75c784eb80256).
The bug causes wrong distance calculations (using
android.location.Location.distanceBetween), mainly affecting sports
tracking apps.