Added iOS 6 support.

Hi, I would like to use this library with iOS 6 project, so I have modified the source to make this possible ;)

It looks like, we have to change only one line of code; please let me know if there is something else that might cause any problems?