(It turns out that some of the functions in router.h didn't even exist any more, so I just got to delete their declarations completely.)