Fix build error on Linux.
Merge pull request #1722 from zhchbin/fix_gtk_build

Fix build error on Linux.