Updated to strip library more on Linux, and work on Solaris

Updated to try to support more protocols