adds some fixes for the warnings from Xcode