changes for Mac support

* in the makefile:
    * replace 'gcc' with 'clang'
    * replace '-Ofast' with '-O2'
    * replace '-Who-unused-result' with '-Wunused-result'
* where needed in the *.c files, replace '#include <malloc.h>' with
'#include <stdlib.h>'
* intall 'wget'