Fix project to compile with Java6