Implement GetThreadCount on Linux.
Add BufferedFile::fileno.