C++11 GUI code fixes