First, thanks to Emil who submitted a series of patches to fix Android building issues for the master branch. However, there are still some errors in my test. These patches try to fix them. The patches are based on Emil's 'submit/android-fixes#1' branch. With them I'm able to build the i915 and i965 drivers for android-x86.