Better login and make it compile on non-osx unixes.. :P