(Glide64) ecsv- Unify byteswapping functions, and avoid nonportable versions