Fix build problem for CentOS, Ubuntu