Bugfix for Android 2.2 devices which lack StrictMode.