add includes to build cleanly on NetBSD