Fix php 5.5 build.

Added builder script inspired by
https://github.com/yiisoft/yii/pull/1889/files to install yaml module when
Travis doesn't have a working pecl available.