conditionally re-add Trilinos link libraries