Yahoo Inc.’s appointment of two board members on Thursday signals the Internet company is girding to battle activist investors over its future.…