Fix for examples to make them work on Windows properly

There are two fixes:
- avoid InterlockedAdd(), which is not always available 
- fix mandelbrot_tasks example to be not conflicting with mandelbrot (so they can be built together in batch mode)