Borrow the eject code for OSX from xine-lib-1.2-macos branch, as contributed
by Matt Messier. This allows to eject disks on Mac OS X without having to
call an external utility.
Incidentally this fixes libcdio eject function on Mac OS X 10.4 and later, as
hditool was moved from /usr/sbin to /usr/bin.