Updated universal library build script

(from https://github.com/michaeltyson/iOS-Universal-Library-Template)