work around bugs from 2009 (https://bugs.launchpad.net/ubuntu/+source/cairomm/+bug/452733)