A static library on Windows has `.lib` extension (for visual c++ toolchain).
Fixed samples to work with visual c++ 2010: need to explicitly export functions from DLLs, and don't use dllimport for functions provided by a static library.