Made unix-only functionality optional.