Fix build ifndef SINGLE_THREADED
Usually !SINGLE_THREADED