Add gethostname and sethostname