actually make it work on Solaris