Fix 3.6.0 compatibility.

3.6.0 agents are complaining about wrong type returned by strcmp function
taken by ifvarclass.