More Solaris additions.

Scanning through the sources I found some places where declarations for Solaris
are missing. This is not complete!
Merge pull request #1053 from redstar/solaris_additions

More Solaris additions.