Added #include <unistd.h>; thanks Dimitrios Bogiatzoules
added link dependency to libdl
Fixed additional include directories for sml,microhttpd. Stop on error