Portability/compilation fixes:
* Move `extern "C" {' to after #include <...>'s.
+ * Pass LDFLAGS from configure on to ld via settings.make.in.
+ * make clean deletes *.so and *.so.* files.
Minor improvements:
* Do not print warning if sendto() gives EAGAIN.