hwstub: fix memcopy/memset

Change-Id: I66636bb6858bd0ae1ba81030f3d11aa7251f548b
hwstub: fix zenv, still wip

Change-Id: If1442d0c2efd05e502932f205f32ac39f09eac67