fix for MSVC build (OpenMP parallelized for-loop does not accept size_t variable)