Build scripts updated for HeapMedian.