First buildable version, tested on php-cli 5.4