Fix some issues about Wine.