C99: Mark POSIX source files

Specifly POSIX standard for every source
file that needs it.

Hide term_t structure inside src/io/term.c
not to expose POSIX (struct timespec) to client.

Remove unnecessary #include "io/term.h"
Move SIGWINCH code into awinch.c
Merge branch 'strdup' into c99