Fix build for Android

Runs well, albeit a little slow on my Nexus 4. Will test on nVidia Shield soon.