use special nginx env (with DYLD_LIBRARY_PATH defined on mac) for restarting nginx as well as starting it.