handle older Go version TLS support