Use localhost as default hostname on all platforms