mac: only use gtk compile flag, if osxapp is enabled