NetBSD support

This adds support for building MongoDB on NetBSD.

Version 1.8.4 builds fine with these changes, master branch builds with "scons --use-system-all", there was some problem with a header file in third_party/js-1.7, i wasn't digging deep to resolve it.