Actually i don't have that library in my simulink. Is there any other method to find average value. Or else can i copy that blocks from the new version to older version by making some changes in the S functions.
you should at least have the "to workspace" block, where you can assign your data to a workspace variable. There you can calculate the average value in a m-file or the command window.
The answer to this question is depending on your switching frequency or ripple frequency. You can use the above mentioned methods, provided you know the frequency of the ripple. Even a simple low pass filter might work as well.
But if you are dealing with variable switching frequency (such like hysteresis current control), then you need an adaptive filter. Try to search keywords like "adaptive moving average filter" and "variable frequency".