Fixes for wxBase build under Android

Please review the changes and make sure you understand (and agree with) them and ask on the list if anything is not clear.

Please see my wx-dev message for more details.