Pull request #16888 removed searching for libraries with no extensions when linking frameworks... this adds that feature back.