Add memory hooks override for Gentoo sandbox v2.5, too.  Thanks to
Justin Bronder for the patch.