fix find_library on Solaris (closes #5289)
merge 3.3 (#5289)