autotools build fix

gets rid of most of the warnings when performing autoreconf or running autogen.sh