Setup Xcode targets for dylib

Creates Xcode targets for building dylibs. Based off: http://ddeville.me/2014/04/dynamic-linking/

NOTE: Bulding dylibs currently requires modification of Xcode installation. We should try to change this in the future.