Fix all compiler errors