Changes for compile in UNIX.
Add some sxf structure checks.