Use memcpy instead of type messing for 64 bit types

Should fix sparc issues