Make ATS compile on Solaris again

extend this #if with || defined(solaris)
TODO: How do we fix it on OS X/FreeBSD?