C++11 mode, more SIGSEGV fixes and code improvements