Add cast to memcpy in `hsm_history.cpp`
this should keep clang++ happy