Added typedef for suseconds_t for systems without this defined. Added signal/sigaction from gnulib because mingw is missing these.