Windows: fix build with DEBUG_REFCOUNT