Minor fixes of qt interface.

Fix some minor build errors of qt interface.