core: fix windows breakage from 982cf90, r=burningtree.