Fix compilation on VS2013

- Add #include of <algorithm> for std::min/max.
- Add new /FS flag to compilation which is newly required when spawning cl.exe in parallel. Needs to be detected because adding that flag on older versions will error out.