Fixed issue with php lib.
Added dist task to build script.