Fixed some undefined references.