fix read/open dll import code