Fix compilation on macosx
dlopen on macosx does not know the flag RTLD_DEEPBIND, so introduce a preprocessor statement to distinguish between Linux and macosx. Use macosx internals to calculate free and total memory.
dlopen on macosx does not know the flag RTLD_DEEPBIND, so introduce a preprocessor statement to distinguish between Linux and macosx. Use macosx internals to calculate free and total memory.