In the end I gave up with Wine. I used VirtualBox to host XP, and then used Windows compatibility options.