Fix build error when have GTK.

I meet error when build first but could not meet it again. Anyway, it may need change. Please review it.