add -std=c99 to CFLAGS
removing sudo invocations from rules
Add a configure script

We also noe obey DESTDIR for (un)install targets.