transmission: fix non-gtk builds

I'm sorry, I was incautious.