Update makefile to check if elf.h, dwarf.h and libdwarf.h exist before build