configure: Detect Solaris libc in an OpenIndiana/illumos compatible way