Fix all linking errors.