Since gunicorn doesn't support windows yet, we use flask itself to handle requests if the environment is windows.