Fix JDK 1.5 compatibility issue

The IOException constructor that takes a cause argument wasn't
introduced until JDK 1.6 (unfortunately).