Misc fixes (overlapped IO, etc).