Use __linux__ to identify Linux-based systems.
Merge pull request #2950 from ibuclaw/linux

Use __linux__ to identify Linux-based systems.