Support cgi-fcgi and cli-server SAPIs with ZTS enabled