Fix compatibility with older guava versions