grc: fix to allow grcc to execute in headless mode
qtgui: fix missing API declarations