Use dynamic library path for mac systems