Remarks on a paper by Gavrilov: Grad–Shafranov equations, steady solutions of the three dimensional incompressible Euler equations with compactly supported velocities, and applications