Solaris support

This is to get solaris2 working for openssh.  This is backwards compatible with old OS and will not break anything.
@someara Mentioning you as you merged this originally :ice_cream: