[shell] Try to make linking work on OS X