fix solaris libraries installation, closes #2051