Get rid of annoying build errors for deprecated oraclejdk6 target.