Support 'out of tree' builds.

Closes: zfsonlinux/zfs#1082