Comment out sysconf(LONG_MAX) check (not useful). Change sysconf(0x12345678) check into sysconf(INT_MAX) for better 16bit compliance.