wip (added back the missing Makefile).

(The changes ensure the whole server can be *compiled*, but this does
not mean it can be *run*.)