Made compilable on CentOS 7.