fix initial compilation errors and add old NanoHTTPD source