try to make mac work also (and still solaris)