Fix for seg faults due to libec path in multilib arch and fix for cursor running in insert tab mode undo