build: Add support for building dylibs.

llvm-svn: 163412
3 files changed