slimmed down timeout.c and cleanly compile it from source through Makefile