Revert "REMOVE wip cond vars"

This reverts commit b24048e225e14c4e5964362e926d7ddc61cb6f0a.
wip timer thread
wip loop main thre
Set dummy main loop

Prevents Emscripten from unloading Stockfish when main function ends.
JavaScript interface relies on callbacks, not traditional main loop,
and we want to keep things loaded to handle events correctly.
REMOVE disable loops?
wip uci input
Print debug output to std::cout only

Don't put it to sync_cout which is now reserved for API output.
Revert "REMOVE disable loops?"

This reverts commit 88f6d5506eb919899157b4ffeee578cadea6a7d5.
REMOVE debug current pos
REMOVE temp include boost
REMOVE nowarn
fu main loop
REMOVE? emscripten.h everywhere
wip

WARN: emscripten.h added, too late?