main: make program_name not static
Do not use exit() with a magic number
Do not include strings.h
Drop usage of strncpy
Update fdl.texi from gnulib
Remove trailing whitespaces
fix various make syntax-check warnings