glx: Split indirect and applegl implementations into different files