cherry pick pull reqeust 141 from phpsass

https://github.com/richthegeek/phpsass/pull/141

fixes php 5.5 compatibility
cherry pick phpsass pull request 103

https://github.com/richthegeek/phpsass/pull/103

fixes php 5.2 compatibility