Fix compiler errors from script import