Fixes build errors for Android.