This adds yet another build dependency, but it's better than the alternatives of handling it in code.