qt: support debug build