Removed appending --enable-shared when platform is darwin.
Merge branch 'yosemite'