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

This indeed fails in AIX. Will add quotes.