fix compilation when not using qtdir option