Set deployment target to 7.0 and removed deprecation warnings