scanner: cope with lack of dprintf on windows