cmake: fix win32 code path

Signed-off-by: Tim Blechmann <tim@klingt.org>