Fix library depedencies