Make it posible to build headless on Android

All you need to do is add HEADLESS=1 to your command line.

Or, like me, you can use a custom script, I have ab2.cmd that just calls it with `NDK_DEBUG=1 APP_ABI=armeabi-v7a HEADLESS=1` and my own NDK path.

-[Unknown]