Added a retain when not using ARC
Fixed some warnings
Merge pull request #1 from hsarret/master

Compatibility with non ARC + some warnings