Use addAll only when available

Older Android versions does not provide it.