Add target_endian crate cfg. Closes #4367