Fix compile error for linux >= 3.0.0