Add support for big-endian architectures.
Use sendfile if EXDEV received from rename call
Merge commit 'a761c0078af8a5fa18d21d7b8ddaa909853dd3ae'