Added extern C declaration for libthost
Implemented pascal demo