Fix compilation on Windows

ksqo needs to be cleanup up as well on Windows code path.