cmake: Do not link in system libs

They are not needed any more.