Fix build system on Darwin.