Fixed a syntax error in ex.h. Added _POSIX_C_SOURCE to all source files.