trigger-source: Explicitly include mainloop.h

This works for both 3.5 and 3.6, but missing it wasn't a problem in 3.5,
because we got the header via another. Not anymore with 3.6, so include
it ourselves explicitly.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>