cmake: add more checks for folly-config.h generation