make app run on CentOS 5.5