Fixup read_file implementation.
Make make test actually fail the build.

Also improve the existing read_file tests.
Fix one clang compile warning.
Include LPC optimize routine in test.
Fix a valgrind complain in posix_timer.c