define mempcpy on OSX because, this GNU extension is not available there