Fix autotools files to new main file.