Fix non-GCC (and non-thread-safe!) case.