Make compilable with java6