a2aef6feeb
support for cross and host builds on more platforms. Obtained from: Andrew Brown <atatat@NetBSD.org>, and Luke Mewburn <lukem@NetBSD.org>