Fixed stack bottom initialization for DLLs.

May also fix other leak/crash issues.