add findlib.sh

fixes #370 

please don't merge until we know that we are allowed to use findlib.sh

NOTE: this is a candidate for the stable branches