patch to avoid compile error on CentOS
 from https://gist.github.com/hyoshida/11241844