Added a stress test. Implemented atomic reference counting at the C side to fix issues with crashes in multithreaded environments. Fixed a deadlock with SQL Server Windows ODBC Driver.