Solaris changes for std.file and std.socket.

std.file: Add implementation for thisExePath(), fix struct DirEntry
std.socket: Add implementation for formatSocketError
Merge pull request #2759 from redstar/solaris2

Solaris changes for std.file and std.socket.