autolib: completed support for static, dynamic linking
  with system, pkg-config and manual lib setting
merge of '3563ab322f666b1681a35def05a666d0bbf2b199'
     and '8fc1d6789c9ef809e2739d65eb1c97742f30543a'
fix .d files usage when USE_D_FILES is defined
fixed program_simple_basic test: sleep_hack is needed also on darwin/osx
osx dylibs have are linked install_name without relative path
test: use different runtime LIBRARY_PATH on different platforms (DYLD_,LD_,PATH)