* main.c (die): Close output_context AND make_sync.

die() can be invoked inside a separate output_context, if the
$(error ...) function is expanded as part of a recipe.
* commands.c: [SV 40789] Remove unneeded header dlfcn.h