Make extension building skip debugging flags when building a release build