Revert previous. While it may fix NetBSD, it breaks SmartOS.