fix some warnings, both in autotools and in compiling