* [conf]: make dlfcn.h libdl detection more fine grained

... needed on MinGW
* [conf]: detect langinfo.h
* [core]: check HAVE_LANGINFO_H to use nl_langinfo()
* [core]: simplify HAVE_POSIX definition