Add Solaris specific declararions for dlfcn.

Just another backport from druntime master.