mod_wsgi fixes