jdk 1.7, fixed some build warnings