android2.3: fixes for android <= 2.3