fix build error for mac jdk1.6