[sc-memory] Fix compilation on 64-bit platform