Use _putenv instead of SetEnvironmentVariable
Use chewing_free to free memory
Use unique_ptr for m_ctx