Minor changes to IO library