Fix compilation errors with CMake (not finding ThreadLocalStorage.h)