added support for php
made the build work - kind of hackish but works :)