Replaced LINUX defines with __linux__ for compatibility.