Use same code to detect platform byte order