replaced JUCE threads with standard C++11 threads

Some minor quirks need to be solved, but in general it works. TODO:
C++11 threads don't have priorities by default. YSE might work faster if
they are implemented.