Fixed gcc linking