add _GNU_SOURCE macro in makefile and use sighandler_t in http c file