Try to fix the FreeBSD build when ECM_ENABLE_SANITIZERS is enabled.

Authored by krop on Mar 22 2019, 8:29 PM.