Modified the configure system and did some cleanup and got read_test to
compile properly using the standard build system

I get to a prompt when I run read_test, but trying to actually read
something gives me a segfault, however I should actually be able to
figure out why I'm getting a segfault and fix it now that I'm using a
hand written read