Add GCC optimization patch