Add missing prototype for ffs, and include headers from ffs.c. Move PostSyntheticMotion prototype to input.h.