Fix 3.6.0 compatibility.

3.6.0 agents are complaining about wrong type returned by strcmp function
taken by ifvarclass.
(cherry picked from commit 67a5d9949b9647926c33ce735419fa3d3ab7c585)