Revert "Revert "Fixed clang build error for libgui""

This reverts commit 9f8eeafbfcf737c384f1a2e250cebb9c42db5bc7.