ibrcommon: Fix compling issues on Android

The recent fix for OSX Maveriks breaks the build for Android. This patch adds missing
changes to compile on Android again.