Fix several configure and compile warnings.