Fixed some linking errors.