Updated automake files, added pgo, lto and other optimizations