Converting non-standard LINUX macro to __linux__ for detection.
Fix linux compile with undefined types.