Now the block compiles under MinGW but causes segmentation faults