Allow SSH port forwarding without breaking JDK 1.6 support