do not set LD_LIBRARY_PATH on macs
add a function for running commands via sudo when not running as a user who is actually allowed to use sudo