fix make install bug and object writer bug