Improved the initialization of the TLS options when starting the Engine

Ignore-this: b4b044db0dedef204e8c0fadea7846eb

darcs-hash:20100623084406-1e3d8-3cdf70b4729051e5a6a2bf782977f7a635695b8e
Fix build in Windows environment

Ignore-this: b889ec5b3bc688bf34f227bb4787e84c

darcs-hash:20100623144210-56b4d-d34d11d3db76c4b21994d7246b780b3fc1b0f2ef