Fix another SEGFAULT for !WIN32 platforms