Almost builds on NetBSD/amd64