core: fix windows breakage, r=burningtree.