Sort SRCS, HDRS, OBJS.
Remove COMPAT_SRCS and COMPAT_OBJS.

These appear not to have any effect any more. They were initially used
to conditionally compile and link some files with replacements for
standard library functions, but seem not to have been used after r828
("Moved to nbase system for compatability funcs").