Allow compilation with colord and without squish

(cherry picked from commit f1604c556506fcfc0ae6c9c8fa21fb8c6a990d18)