debugging support added (use ./configure --enable-debug)
define DEBUG and NDEBUG for debugging support
minor change to improve GNU standards compliance