Make library working with Android 2.2+