Add some pedantic __bridge cast stuff to build on Android.