write error about dynamic library import failure to stderr