Standalone C TH library