Add workaround for Boost/Qt bug.