add platform independent linking command for the dl lib;reverted SMDS.i since generated by swig, now compiler complains but still compiles