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

This reverts commit 882009082db1dc8af61557444e2dd0e696769c05.