Add Solaris specific declararions for dlfcn.

Add definitions to core.sys.posix.dlfcn and add new modul core.sys.solaris.dlfcn.
Merge pull request #1040 from redstar/solaris_dlfcn

Add Solaris specific declararions for dlfcn.