Fix LG compile errors