Clean up spacing, line lengths.
Respect LDFLAGS in Makefile.  Use CFLAGS consistently.
Avoid unused variable warning for NOTHREAD.