fix lwgl errors so that demos will compile and run