Make math/aamath build on Bitrig.

Fix compile errors (patch from FreeBSD). Set correct paths for readline.
Make math/calc build on Bitrig.

Set correct paths for readline.
Make textproc/uncrustify build on Bitrig.

Both close(2) and read(2) call for <unistd.h>.