Backported patches fixing ARMv5 support for issue #3985.
Also implement a Timer and AsyncTask based on Android's Looper.