Common plugins - omnios portability fixes

A few things to play nicer on omnios.  Biggest change is the implementation of a pfiles-scanner to locate listening process in net_listen.