Use OnWindows from utils instead of ad-hoc platform check.