java nio fix for jdk6