fix Java 6 support (method "inheritIO" is available only in Java 7)