fixed params error in CCSpriteExtend:playAnimationForever()
added  param "mode" in io.write()  to control file open mode
Merge pull request #12 from skyblue/luajit

fixed params error in CCSpriteExtend:playAnimationForever()