Updated to handle JustThread_LIBRARIES CMake variable.