Convert button clicked event handler from member function to extern "C" free standing function to try to fix linux segfault(#21).
Convert button clicked event handler from member function to extern "C" free standing function to try to fix linux segfault(#21).