compilation fix for NetBSD

spells __NetBSD__ correctly.
compilation fix for NetBSD

taken from a pkgsrc patch: patch-lib_os__mon_c__src_memsup.c
reduce bashism

taken from from a pkgsrc patch: patch-lib_wx_configure.in
Moved ifdef NetBSD to proper place
Merge branch 'sm/fix-disksup-susv3/OTP-10945' into maint

* sm/fix-disksup-susv3/OTP-10945:
  This patch fixes disksup:get_disk_data for SUSv3, specifically OS X ML
Merge branch 'yt/netbsd/OTP-10941' into maint

* yt/netbsd/OTP-10941:
  Moved ifdef NetBSD to proper place
  reduce bashism
  compilation fix for NetBSD
  compilation fix for NetBSD
Merge branch 'dg/win_icon' into pu
Merge branch 'sk/odbc64' into pu
Merge branch 'pn/error-logger-sup_handler' into pu
Merge branch 'ks/hipe-cleanup' into pu
Merge branch 'ks/hipe-cleanup-escaping' into pu
Merge branch 'ks/erlang-spawn_opt-process_level' into pu