Use /proc/self/fd for solaris compat, bug #474536