My solution to this was to build the microhttpd package from https://github.com/Karlson2k/libmicrohttpd.git and then replace the existing microhttpd.h file from the distro with the built one. Then I could compile without errors This was done on a raspberry pi