launch: fix build on 10.8 and newer

Closes #24739.