I get the following errors now:
Object of type 'juce::OptionalScopedPointer<juce::TimeSliceThread>' cannot be assigned because its copy assignment operator is implicitly deleted
juce_OptionalScopedPointer.h:65:5: Copy assignment operator is implicitly deleted because 'OptionalScopedPointer<juce::TimeSliceThread>' has a user-declared move constructor