IOS ready version to use delegates

To use delegates under IOS there had to made  some small changes and the
project must be compiled under VS 2008