Scripts:fix dll loading in linux, make ser.dll compiling