fixed gcc link problem on Ubuntu