Compiler error

This is all working in the Last.fm project now.  However when building in my Qt project I get the compiler error  "'for' loop initial declaration used outside C99 mode". This change fixes it for me.

Cheers!