osdep/subprocess-posix: use more robust waf test for environ predeclaration

this was generating a warning, because apparently __GLIBC__ is not
defined, but "extern char **environ;" is still in unistd.h