Some changes for searching prefix for libs to link to