Implement sethostname