Two fixes for C++ compilation. Explicit casts in guaranteed_memset and external declare low_hashmem when it is a variable to avoid having multiple instances of it.