Fix bug in ./configure
Make check_lib less error prone in ./configure
Fix ./configure for OSX
Add some documentation to the top of Makefile