Fix linking problems.