Fix JDK 1.5 compatibility issue

The IOException constructor that takes a cause argument wasn't
introduced until JDK 1.6 (unfortunately).
Merge pull request #21 from trask/jdk5fix

Fix JDK 1.5 compatibility issue