http://mail-index.NetBSD.org/tech-toolchain/2006/06/27/0001.html. This cleaner version of the patch from Christos - thanks!