Fixed xcconfig and dependency issues