Resolve issue with inclusion of featuretest.h

Add guard against _NETBSD_SOURCE to protect against redefinition of glob_pattern_p from glob.h