Replace this hack with a more versatile one that works for multiple compilation objects. Consolidates this hack across all the code bases (soon to be used in a D3D12 standalone patch) Signed-off-by: Joshua Ashton <joshua@froggi.es>