fix bug causing segfaults on some machines

Use a shared pointers instead of the variable modifiersymbol,
as global variable modifiersymbol appears to be deleted twice
after main return.