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"