Change dependency to compatible with java6