Add compatibility for Solaris apis