fix build issue on jdk 7 6