Compile tool in all gcc optimization modes.