fdopen fixed, removed the rest of nacl_stat