fix build for non-gtk x toolkits