-Z replaced with -g
So, finally works, no more segfaults