update libgdx to use gradle and fix compilation errors