apply patch for gnu tls