Ugly hack to fix destroyProcess for Java8

This is a real hack (I would suggest a rewrite of the massive use of reflection in this component but that would be a much larger task) to get Jenkins working properly on Java8.
The issue is described in this issue: https://issues.jenkins-ci.org/browse/JENKINS-21341