Remove Java 7 dependancy by switching to the old IO system