fix a segfault in fastcgi build