editors/sam: Fix build on 32-bit architectures
The build fails on 32-bit architectures, because the source assumes
that unsigned long and uint64_t have the same size. Until upstream is
fixed (I have submitted the patch there, too), fix the build with local
patches.
Reviewed By: arrowd
Differential Revision: https://reviews.freebsd.org/D40942