Fix win32 window not having a destructor in headless mode