Add sanity check on profile version.
Fix (again) endianess detection on PowerPC