Fixed compilation errors in CentOS