Resolved java 1.5 compilation issues (the constructor of IOException). Reworked the exceptions a bit.