libtool-expand treat ".." in path correctly, no need to handle here.
replace .so with .dll, same as SOM.