Updates to cmake and code to build with gcc 12 and cmake 3.25
- Allows cmake based code to build on Debian 12 (dolphin stream code not tested yet)
- Adds std::array header file to explicitly include it in a few places where it is not explicit
- Fixed a call to mmap to check for errors using the proper error code instead of a constant of -1
- Added some CMake includes/library logic to add rpc includes/libs to code (needed when the system splits rpc out of libc)
- Fixed a const issue in a local_dc test
This allows code to build.