beecrypt: fix compiles on 64-bit systems

Closes #18889.