changed the way static library searching is done