correct some compile error for javac 1.6