Bug-22137 - Solaris does not have a strndup, so implemented the function so Solaris will build.