Fixes for wsgi file to use with virtualenv.