Use a priority queue to select compilers