fixed Windows build


Signed-off-by: Daniel A. Zorin <juan@lvk.cs.msu.su>
Algorithms/randomalg: algorithm now better matches the openstack one

Resource is now randomly chosen from a set on N best resources sorted by
a criterion

Signed-off-by: Artem Plakunov <artacc@lvk.cs.msu.su>