fix some bugs of hpux