Fix compiler errors