Add support for PHP 5.5 and build shared.

Build most extensions as shared ones to avoid certain issues
(eg. intl refusing to link due to the C/C++ mix).
Update versions.