fixed jdk 1.7 compile issues