Fix build with Ninja on FreeBSD.

Authored by cgiboudeaux on Nov 26 2019, 10:18 AM.