Improve code gen for localgot