allow to compile with java1.7 as minimum