More portable fix for gcc 11.3 compilation issue.
Better fix for the compilation issue addressed by !2 (merged).
The fix in !2 (merged) was based on std::intptr_t
(declared in <cstdint>
), which despite being in the standard since C++ 11, can be (or not) supported by a standard-compliant C++ toolchain.