Change from Werner on java.net to allow builds on recent JDK7s