Use special profile for compiling Java8 tests.