Revert "Fix build on Solaris"

This reverts commit e212b64823219b74839c32e9bec90bf8d6d74ef3.
Fork osext and support Solaris