Updating: handling memcpy and memset for MACOS