Export function from solver DLLs.
Fix putenv usage.