Fix error of compile and link project