include fixes for clean build on NetBSD

Add some includes so no build errors on NetBSD (and I would think other BSDs).