Improve compatibility with api levels before Honeycomb