Efficient use of parallel libraries on heterogeneous Networks of Workstations