Chagned reference to hgapi to hglib