Fix for new UI functions under Win32.