fix non-Windows compile (nw)