Added app_loop function to app.c for FQuake3.Viewer.