xbase: fix build with new gcc via a Gentoo patch