add findlib.sh

fixes #370 

NOTE: this is a candidate for the stable branches