fixing up a few erroneous calls that break builds in gentoo