Need to link explicitly with pthread library on Linux only
Need to include signal.h for pthread_kill