changes in compability v4 and v5
Merge pull request #67 from UGerhards/v5-stable-fix2

changes in compability v4 and v5