Shim all core IO calls and allow callback shimming via wrap function.