ANDROID: Start to modernize build system

Writen originally by @botje for residualvm/residualvm