fixing warnings, min java version now is 7