Cleanups, including platform.h in cf-upgrade, and linking it to libcompat.

Previously the command line ended with no space, now it does. Intentional?