adding get_services() support for OSX, Solaris and Ubuntu