[mosq] bundle all params into an mqtt struct
[gnu] _GNU_SOURCE should only be defined
[getopt] support for command line options
[git] update gitignore