Patch for popen.c