Fix non-Windows headless build.
Make it possible to build headless on Android.

Use "ab HEADLESS=1", and then you'll have a shiny new ppsspp_headless
exexutable which can run tests.
Merge pull request #4178 from unknownbrackets/headless

Make it posible to build headless on Android