Updates deployment target to 6.0, fixes project warnings

Hi, this pull request updates the deployment target to 6.0 and fixes project warnings.