Fixed issue on Pi with uint64_t and unsigned long