Upgrade libphutil library from v1 to v2