I recently noticed that the calls to the FKB library are not thread-safe. After I link the FKB library to my code and run my code in a threaded mode (OpenMP), the code produces unexpected results unless I call FKB in an omp critical section. Are there any special flags I need to turn on while compiling the FKB library so that it works for threaded runs?