Thanks, jacek.
It looks a bit different, because I am using Vista inspirat pack (one of those UI tweakers). The only thing I think could possibly cause the problem is a mixup of libraries compiled with MS Visual Studio compiler and mingw, but as far as I know, all the paths are set ok...
Bookmarks