libwin: only build on windows + fix warning