Linux build still segfaults