remove warnings and improve build process in response to newer automake