fix linking failures against memcpy on x86_64, fix runtime tested successfully