fixed compilaition on RedHat and openSUSE 12.1