Adding declaration num_of_cores

Would not build for certain configurations of VS without the declaration