Fix static link of http
Cleanup
Run main dispatcher if using events thread