Okay, I've uploaded a new 40d17-head which hopefully fixes the segfaulting and similar problems. Can't speak for the speed, but I did try a couple things to fix that too.
Re-compiled git-head, same segfault.
Starting program: /var/games/df_linux_git/dwarfort.exe
[Thread debugging using libthread_db enabled]
[New Thread 0xb67e1b70 (LWP 12177)]
Loading bindings from data/init/interface.txt
Program received signal SIGSEGV, Segmentation fault.
0xb6ed6636 in glGetString () from //usr/lib/opengl/xorg-x11/lib/libGL.so.1
(gdb) bt
#0 0xb6ed6636 in glGetString () from //usr/lib/opengl/xorg-x11/lib/libGL.so.1
#1 0xb7284603 in glewInit () from ./libs/libgraphics.so
#2 0xb7230480 in enablerst::create_window_GL(GL_Window*) () from ./libs/libgraphics.so
#3 0xb7232b34 in enablerst::loop() () from ./libs/libgraphics.so
#4 0xb72336aa in main () from ./libs/libgraphics.so
#5 0xb6fa0bb5 in __libc_start_main () from /lib/libc.so.6
#6 0x0804df81 in ?? ()
==12179== Invalid read of size 4
==12179== at 0x5198636:
(in /usr/lib/opengl/xorg-x11/lib/libGL.so.1.2)
==12179== by 0x4AA047F: enablerst::create_window_GL(GL_Window*) (in /var/games/df_linux_git/libs/libgraphics.so)
==12179== by 0x4AA2B33: enablerst::loop() (in /var/games/df_linux_git/libs/libgraphics.so)
==12179== by 0x4AA36A9: main (in /var/games/df_linux_git/libs/libgraphics.so)
==12179== Address 0x3fc is not stack'd, malloc'd or (recently) free'd