fixed for dealing with the different versions of ls
Fix for compiling client and server and client without ims with server+swig