Using DYLD_LIBRARY_PATH works better.