Replace various macros with nitems() from <sys/param.h>.

ok pedro@