Various Compile Optimization Patches