cmake: Add functional check for cstdint