main.c: use default handler for stop signals
configure.ac: portability improvements (mostly mingw32)