1. Move `project` before `check_ipo_supported`, so that the check knows
the languages to check.
2. Better error message if LTO is not supported.
3. Use a separate flag for LTO
4. Enable LTO for the nightly build.
5. Move git commands to a separate file.