Support both old and new directory packages with typeclass magic
Go back to unix-2.6 or above