Add GNU version checks for 4.4 or higher around -O0 optimize workaround