cmake: fix compilation in CLIENT_ONLY