now uses platform-dependant extension for dynamically loaded libraries (so, dynlib, dll)