Fix external links and some other warnings.