Modified auto.c and driver.c to avoid failure when compiling dgd with -DCLOSURES option.
Added guards to all include header files.