NativeBitmapFactory: support api-21