Added fdopendir c wrapper - need to add hook somewhere?