Moves lib compilation to gradle