copy-agent: change qt4 to optinal dependency.