Make Application::ProcessEvents() static.
Use pipe2() instead of pipe() when possible.