uicore: fix theme loading problems on win32