Fixed #1090: On windows 8.1 the examples crashed if using more than one os thread