Fix Linux g++ compilation issues.