XCode6 final fixes

Fixed all warnings and errors of the code.
Now it runs fine :).
Merge pull request #10 from BoniGauglitz/xcode6_final_fixes

XCode6 final fixes