cmake working, segmentation fault in tests...