fix compile+link on linux