Use work queue instead of direct I/O task spawn; fix some warnings.