Fix kqueue read and write filters.