Sync autogen.sh from stable5