use local definition of FindExInfoBasic for earlier sdks

(int caused complaining in the ternary operator)