Fix unintialized and undefined vars being treated as errors with -O3