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

Whether CFEngine cares is the important question. I personally doubt that an extra space will cause any issues, but I wanted to make sure you didn't remove the space without meaning to.