remove unused declaration
compile with -Wall and -pedantic when compiler supports it
fix clean target in build