Removed nonessential parts in order to improve portability
WIP: Added compatibility with HP-UX
WIP: Added compatibility with AIX
Improved checking header
WIP: Improved compatibility with HP-UX,AIX