DYLD_INSERT_LIBRARIES only works with real shared libraries.

So, build the probe accordingly on Mac.