I suspect getting
-mmacosx-version-min=10.13
into the compiler and linker command line would solve this. How you do that depends on the build system being used.