Fix failures on RHEL/CentOS 6

Signed-off-by: Samuli Seppänen <samuli.seppanen@gmail.com>