Fix errors about undefined references.