Mainly autoconf changes, and some others to remove warnings.