Improve portability to NetBSD and Alpha.