Remove dependancy on Apache io library.