Here are some additional build fixes that were uncovered trying to build mesa/master with mmma which tries to build all targets from the source (not just the ones needed by the target-device).
Some of these changes are android specific, some seem fairly generic.
Review and feedback would be greatly appreciated!
thanks -john