Thread.sleep for windows: for non-zero timeout, sleep at least 1ms
add explicit thread_term call to replace atexit

- When calling rt_init/rt_term from ELF's .ctors/.dtors section
  atexit runs before rt_term, which causes a crash because the
  thread locks are already destroyed.
reuse rt_init/rt_term in main

- runModuleUnitTests is no longer called from rt_init
  but needs to be called separatly
Merge pull request #587 from dawgfoto/refactorMain

reuse rt_init/rt_term in main
Merge pull request #589 from dawgfoto/threadTermLocks

add explicit thread_term call to replace atexit
perform runtime and module initialization when loading DSOs
add HashTab container
Merge pull request #584 from rainers/sleep_non_zero

Thread.sleep for windows: for non-zero timeout, sleep at least 1ms
Merge pull request #592 from dawgfoto/hashTab

add HashTab container
Merge pull request #587 from dawgfoto/refactorMain

reuse rt_init/rt_term in main
Add D implementation of Elf-related header files from FreeBSD.

Add D modules for sys/elf.h, sys/elf_common.h, sys/elf32.h,
sys/elf64.h and sys/link_elf.h.
publish C interfaces rt_loadLibrary/rt_unloadLibrary

- use C strings for rt_loadLibrary
- add rt_loadLibraryW for wide C strings
- move char[] to C string conversion to Runtime.loadLibrary
Merge pull request #586 from redstar/freebsd

Add FreeBSD header sys/elf.h
prevent HashTab manipulation during opApply iteration
Fix Issue 10897 - btc, btr and bts shouldn't be safe
Fix issue 10894: added missing or renamed DDoc parameters (found by fix to 10236)
Fix issue 10894: fixed typos
Fix it so that test_runner works with DIP 37.

As currently implemented, test_runner blows up when it hits a package.d
file, because the module name does not match the file name. This fixes
it so that the name of the package is used in that case.
Merge pull request #589 from dawgfoto/threadTermLocks

add explicit thread_term call to replace atexit
Merge pull request #590 from dawgfoto/autoInit

perform runtime and module initialization when loading DSOs