Support for installing php extensions on vanilla php Yosemite

Closes #1387.
Closes #1379.
Closes #1402.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>