Move completly the optimizer_time and linker_time into the ProfileStats.
Merge pull request #1641 from nouiz/time_opt2

code cleanup