Leopards sign former Pirates midfielder