Fix C++11 on Linux. Fix Linux compile after merge. Fix all compile warnings.