Fixed to build as SL5 project

Array.ConvertAll() is not available in SL5, rewritten to for loop.