Fix compilation issues with the new Xcode

Was playing with this repository and found some compilation issues with the new xcode so fixed them. :)