Fix 'undefined reference' errors.