Implemented ./configure.
Updated makefiles to reflect ./configure changes.