backport patch to fix configure setsid test