Use std::memcpy, remove whack function, cleanup warning, fix size vs count.