Autotools

Initial autotools build system and a small patch to fix some warnings triggered by the default CFLAGS