C backend: Handle applications