Fix release mode build breakage