Configure by default disables using an external version of qof, but as qof is in the tree as dev-libs/qof, you should use --enable-qof in the econf options. Thanks.
Ok, I was too fast..sorry for the bugspam...qof in Gnucash is modified.