EXTLIBS static: need them to be shared

add EXTLIBDEPS for deps.
add LD_LIBRARY_PATH for static tests in test/runtests.sh
add lib/libpcre$(DLL) target