Fix crash due to missing prototype for get_canonical_hostname()