fix bug where library links were broken