Unbreak after r436971.
- Force cmake into CMP0005=NEW, so that escaping happens predictably,
- Use the cmake defines from workspace while linking.
Reviewed by: jhale, rakuco
Approved by: rakuco (mentor)
Differential Revision: https://reviews.freebsd.org/D10175