Fix Linux debug builds for ESR 78
We need to make some changes to our build script for debug builds based on ESR 78.