Management of version ranges during compilation