Fixed random menu segfaults
Changed from g++ to clang, and added debug info for valgrind