Make ssh-agent code compatible with Mac OS X.
Improve ssh-agent code and make platform-specific.