Gentoo Prefix support

Gentoo Prefix is a userland package manager that enables Gentoo's packages to be installed as a regular user. In principle, it could be used to bring Gentoo's ZFS packaging to non-Gentoo Linux systems. These patches lay the groundwork for that. An additional patch for the SPL is in zfsonlinux/spl#384.