Reorganize to hide internals from ght.h