Handle builds with SDK <7, 7+, and targets <7, 7+